﻿@inherits System.Web.Mvc.WebViewPage<Pikapika.Models.NovelChapter>

@{
    ViewBag.Title = string.Format("NovelChapter - Edit - {0} - {1} - {2}", Model.NovelVolume.Novel.Name, Model.NovelVolume.Name, Model.Name);
    
}

<h2>Edit</h2>
	@{Html.EnableClientValidation();}
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Id)
            </div>
            <div class="editor-field">
				@Model.Id
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Name)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.NovelVolumeId)
            </div>
            <div class="editor-field">
				@Model.NovelVolumeId ( @Model.NovelVolume.Novel.Name - @Model.NovelVolume.Name )
				@Html.HiddenFor(model => model.NovelVolumeId)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.ChapterContent)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.ChapterContent)
                @Html.ValidationMessageFor(model => model.ChapterContent)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.UpdatedDate)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.UpdatedDate)
                @Html.ValidationMessageFor(model => model.UpdatedDate)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.RatingPoints)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.RatingPoints)
                @Html.ValidationMessageFor(model => model.RatingPoints)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.RatingCount)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.RatingCount)
                @Html.ValidationMessageFor(model => model.RatingCount)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.SortIndex)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.SortIndex)
                @Html.ValidationMessageFor(model => model.SortIndex)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.PostUserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.PostUserName)
                @Html.ValidationMessageFor(model => model.PostUserName)
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    }

    <div>
        @Html.ActionLink("Back to List", "Index", new { novelVolumeId = Model.NovelVolumeId })
    </div>


